package cn.kgc.mapper;

import cn.kgc.pojo.DeptInf;
import cn.kgc.pojo.JobInf;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface JobInfMapper {

    int getCount(@Param("NAME") String NAME);

    List<JobInf> getJobByPage(@Param("pageNo") Integer pageNo,
                              @Param("pageSize") Integer pageSize,
                              @Param("NAME") String NAME);

    JobInf getJobById(@Param("id") Integer id);

    int updateJob(JobInf jobInf);

    int addJob(JobInf jobInf);

    int delId(Integer id);

    JobInf getJobNAME(@Param("NAME") String NAME);

    List<JobInf> getJobInfo();
}
